import request from '@/utils/request'

export const reqGetDepartments = () => {
  return request({
    method: 'get',
    url: '/company/department'
  })
}
// 删除功能
export const reqDelDepartment = (id) => {
  return request({
    method: 'delete',
    url: `/company/department/${id}`
  })
}

// 新增部门
export const reqAddDepartments = (data) => {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
